/*
* @Author: wanghongfucoder
* @Date:   2017-03-09 10:31:09
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-09 10:34:04
*/

public class TerminalExpression implements Expression {
	private String data;
	public TerminalExpression(String data){
		this.data=data;
	}

	public boolean interpret(String context){
		if (context.contains(data)) {
			return  true;
		}
		return false;
	}
}